package com.mindmax.user.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 忆图用户对象 yt_admin_user
 *
 * @author cabloy
 * @date 2024-04-02
 */
public class AdminUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)

    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String email;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 停用/启用状态,默认1启用 */
    @Excel(name = "状态 0:停用 1:启用")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long status;

    /** 用户名称 */
    @Excel(name = "手机号码")
    private String phoneNumber;


    private boolean isAdmin = false;

    public boolean getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(boolean admin) {
        isAdmin = admin;
    }


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("email", getEmail())
            .append("password", getPassword())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("phoneNumber", getPhoneNumber())
            .toString();
    }
}
